package tk.mybatis.springboot.spider.pipeline;

import com.virjar.vscrawler.core.seed.Seed;
import com.virjar.vscrawler.core.serialize.Pipeline;
import java.util.Collection;

/**
 * Created by xlp on 2017/12/13.
 * VS内置的默认pipline作用只是将抓取结果打印到控制台
 */
public class ConsolePipeline implements Pipeline {

    @Override
    public void saveItem(Collection<String> itemJson, Seed seed) {
        for (String str : itemJson) {
            System.out.println("==========item==========");
            System.out.println(str);
        }

    }
}